package com.wang.music.util;

import com.wang.music.constant.HttpStatusEnum;

import java.util.HashMap;
import java.util.Map;

/**
 *  封装了resMap
 * @author 子凡
 */
public class ResMap {

    public static Map<String,Object> OK(){
        HashMap<String, Object> resMap = new HashMap<>();
        resMap.put("status", HttpStatusEnum.SUCCESS.getStatus());
        return resMap;
    }

    public static Map<String,Object> FAILED(){
        HashMap<String, Object> resMap = new HashMap<>();
        resMap.put("status", HttpStatusEnum.FAILURE.getStatus());
        return resMap;
    }
}
